package com.yunsom.testdemo.design.mediator;

import com.yunsom.testdemo.util.DateUtil;
import java.time.LocalDateTime;

/**
 * @author Xbao
 * @description
 * @date 2022/6/22 11:48
 */
public class ChatRoom {

  public static void showMessage(User user, String message){
    System.out.println(DateUtil.parseDateTimeStr(LocalDateTime.now()) + " [" + user.getName() + "] : " + message);
  }

}
